package com.umakr.demo.service;

import com.umakr.demo.mapper.KechengMapper;
import com.umakr.demo.model.Kecheng;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by yangliu on 2017/8/18.
 */
@Service
public class KechengService {
    @Autowired
    KechengMapper kechengMapper;

    public List<Kecheng> showAll(){
        return kechengMapper.showAll();
    }

    public void saveKecheng(Kecheng kecheng){
        kechengMapper.saveKecheng(kecheng);
    }

    public void deleteKecheng(Kecheng kecheng){
        kechengMapper.deleteKecheng(kecheng);
    }
    public void updateKecheng(Kecheng kecheng){
        kechengMapper.updateKecheng(kecheng);
    }

}
